<div class="widget">
    <div class="widget_title">
        <span class="iconsweet">J</span>
        <h5><?= $this->title;?></h5>
    </div>

    <div class="widget_body">
         <?if (count($this->messages) > 0):?>
        <table border="0" width="100%" class="activity_datatable" cellspacing="0" cellpadding="8">
                <tr>
                    <th width="10%"></th>
                    <th width="30%"> Колдонуучу аты  </th>
                    <th width="50%"> Кат </th>
                </tr>
               
                    <? $i = 1;?>
                    <? foreach ($this->messages as $value): ?>
                    <tr>
                        <td> <?= $i ++; ?></td>
                        <td> <?= $value['sender_user_id']; ?> </td>
                        <td> <?= $value['message']; ?></td>

                    </tr>
                    <? endforeach; ?>
            </table>
        
        <?else:?>
        <div>
            <br />
            Азырынча каттарыңыз жок ...
            <br />
            <br />
        </div>
        <?endif;?>
    </div>
</div>